//
//  NRWSellCarListCell.m
//  NRWMall
//
//  Created by 张记 on 2018/6/13.
//  Copyright © 2018年 com.anpxd. All rights reserved.
//

#import "NRWSellCarListCell.h"

@interface NRWSellCarListCell ()
@property (weak, nonatomic) IBOutlet UIImageView *carImage;
@property (weak, nonatomic) IBOutlet UILabel *carTitle;
@property (weak, nonatomic) IBOutlet UILabel *carContent;
@property (weak, nonatomic) IBOutlet UILabel *onCardTime;
@property (weak, nonatomic) IBOutlet UILabel *creatTime;
@end


@implementation NRWSellCarListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.separatorInset = UIEdgeInsetsZero;
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    
}
-(void)setCarModel:(carListModel *)carModel{
    _carModel = carModel;
    self.carTitle.text = [NSString stringWithFormat:@"%@%@",carModel.brandName,carModel.seriesName];
    self.carContent.text = [NSString stringWithFormat:@"%@ / %@",carModel.cityName,carModel.sellCarMileageStr];
    self.onCardTime.text = [NRWCarTurnTime timestampSwitchTime:carModel.sellCarLicenceDate andFormatter:@"yyyy年MM月"];
    self.creatTime.text = [NRWCarTurnTime timestampSwitchTime:carModel.sellCarUpdateTime andFormatter:@"yyyy-MM-dd HH:mm:ss"];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
